<extend name="Base/common"/>
<block name="topmenus">
    <think:nav name="nav"> 
    	<eq name="nav.pid" value="0">
        <li <if condition="$nav.title eq '文章列表'">class="active"</if>>
            <a href="{$nav.url|get_nav_url}" target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}</a>
        </li>
        </eq>
    </think:nav>
</block>

<block name="breadcrumbs">
    <div class="breadcrumbs-v1">
        <div class="container">
            <h1>文章列表</h1>
        </div>
    </div>
</block>

<block name="body">
	<div class="container content-md">
        <div class="row">
            <div class="col-md-3">
                <div class="panel-heading-v2 overflow-h">
                    <h2 class="heading-xs pull-left"><i class="fa fa-bar-chart-o"></i> 所有栏目</h2>
                </div>
                <ul class="list-group sidebar-nav-v1 margin-bottom-40" id="sidebar-nav-1">
                    {:W('Category/lists', array($category['id'], ACTION_NAME == 'index'))}
                </ul>
            </div>
            <div class="col-md-9">
				<volist name="list" id="data">
		            <div class="row margin-bottom-20">
	                    <div class="col-sm-4 sm-margin-bottom-20">
	                        <img class="img-responsive" src="{$data.cover_id|get_cover='path'}" alt="">
	                    </div>
	                    <div class="col-sm-8 news-v3">
	                        <div class="news-v3-in-sm no-padding">
	                            <ul class="list-inline posted-info">
	                                <li>{$data.uid|get_username}于 {$data.create_time|date='Y-m-d H:i:s',###}发布</li>
	                            </ul>
	                            <h2><a href="{:U('Article/detail?id='.$data['id'])}">{$data.title}</a></h2>
	                            <p>{$data.description}</p>
	                            <ul class="post-shares">
	                                <li>
	                                    <a href="{:U('Article/detail?id='.$data['id'])}" title="阅读({$data.view})">
	                                        <i class="rounded-x icon-speech"></i>
	                                        <span>{$data.view}</span>
	                                    </a>
	                                </li>
	                                <li><a href="#" title="喜欢"><i class="rounded-x icon-heart"></i></a></li>
	                            </ul>
	                        </div>
	                    </div>
	                </div> 
                	<div class="clearfix margin-bottom-20"><hr></div
	            </volist>
		        <div class="onethink pagination pagination-right pagination-large">
	                <article:page cate="$category['id']" listrow="$category['list_row']" />
	            </div>
            </div>
        </div>
    </div>  
</block>